package com.cn.pojo;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import red.zyc.desensitization.annotation.ChineseNameSensitive;

import java.io.Serializable;
import java.util.Date;

/**
 * 分类表信息
 */
public class TzCategory implements Serializable {

  //分类id
  private long categoryId;

  //店铺id
  private long shopId;
  //父节点
  private long parentId;
  //名称
  @ChineseNameSensitive
  private String categoryName;

  private String icon;
  private String pic;
  //排序
  private long seq;
  //状态信息
  private long status;

  private Date recTime;
  private long grade;
  @TableField(fill = FieldFill.INSERT_UPDATE)
  private Date updateTime;

  public TzCategory(long categoryId, long shopId, long parentId, String categoryName, String icon, String pic, long seq, long status, Date recTime, long grade, Date updateTime) {
    this.categoryId = categoryId;
    this.shopId = shopId;
    this.parentId = parentId;
    this.categoryName = categoryName;
    this.icon = icon;
    this.pic = pic;
    this.seq = seq;
    this.status = status;
    this.recTime = recTime;
    this.grade = grade;
    this.updateTime = updateTime;
  }

  public TzCategory() {
  }

  public long getCategoryId() {
    return categoryId;
  }

  public void setCategoryId(long categoryId) {
    this.categoryId = categoryId;
  }

  public long getShopId() {
    return shopId;
  }

  public void setShopId(long shopId) {
    this.shopId = shopId;
  }

  public long getParentId() {
    return parentId;
  }

  public void setParentId(long parentId) {
    this.parentId = parentId;
  }

  public String getCategoryName() {
    return categoryName;
  }

  public void setCategoryName(String categoryName) {
    this.categoryName = categoryName;
  }

  public String getIcon() {
    return icon;
  }

  public void setIcon(String icon) {
    this.icon = icon;
  }

  public String getPic() {
    return pic;
  }

  public void setPic(String pic) {
    this.pic = pic;
  }

  public long getSeq() {
    return seq;
  }

  public void setSeq(long seq) {
    this.seq = seq;
  }

  public long getStatus() {
    return status;
  }

  public void setStatus(long status) {
    this.status = status;
  }

  public Date getRecTime() {
    return recTime;
  }

  public void setRecTime(Date recTime) {
    this.recTime = recTime;
  }

  public long getGrade() {
    return grade;
  }

  public void setGrade(long grade) {
    this.grade = grade;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  @Override
  public String toString() {
    return "TzCategory{" +
            "categoryId=" + categoryId +
            ", shopId=" + shopId +
            ", parentId=" + parentId +
            ", categoryName='" + categoryName + '\'' +
            ", icon='" + icon + '\'' +
            ", pic='" + pic + '\'' +
            ", seq=" + seq +
            ", status=" + status +
            ", recTime=" + recTime +
            ", grade=" + grade +
            ", updateTime=" + updateTime +
            '}';
  }
}
